package com.pearadmin.pro.modules.stu.rest;

import com.pearadmin.pro.common.aop.annotation.Log;
import com.pearadmin.pro.common.constant.ControllerConstant;
import com.pearadmin.pro.common.web.base.BaseController;
import com.pearadmin.pro.common.web.domain.Result;
import com.pearadmin.pro.modules.stu.domain.StuFollow;
import com.pearadmin.pro.modules.stu.domain.StuRoll;
import com.pearadmin.pro.modules.stu.param.StuRollRequest;
import com.pearadmin.pro.modules.stu.service.StuFollowService;
import com.pearadmin.pro.modules.stu.service.StuRollService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;



@Api(tags = {"学生跟进信息"})
@RestController
@RequestMapping(ControllerConstant.ADMIN+"stu/stuFollow")
public class StuFollowController extends BaseController
{
    @Resource
    private StuFollowService stuFollowService;



    /**
     * 新增学生跟进信息
     * @param stuFollow 查询参数
     * @return {@link Result}
     */
    @PostMapping("/save")
    @Log(title = "新增跟进信息")
    @ApiOperation(value = "新增跟进信息")
    public Result save(@RequestBody StuFollow stuFollow)
    {
        return auto(stuFollowService.addStuFollow(stuFollow));
    }



}
